Compiles the query.
'Declaration
Public Overloads Shared Function Compile
(Of ,,)( _
ByVal As System.Linq.Expressions.Expression(Of Func(Of T1,T2,IIndexedSource(Of TResult))) _
) As System.Func(Of T1,T2,IIndexedSource(Of TResult))
public static System.Func<T1,T2,IIndexedSource<TResult>> Compile<,,>(
System.Linq.Expressions.Expression<Func<T1,T2,IIndexedSource<TResult>>>
)
Parameters
- query
- The query expression to be compiled.
Type Parameters
- T1
- The type of the first parameter that has to be passed in when executing the delegate returned by the Compile method.
- T2
- The type of the second parameter that has to be passed in when executing the delegate returned by the Compile method.
- TResult
- The type of TResult in the IIndexedSource<TResult> returned when executing the delegate returned by the Compile method.
Return Value
The delegate to be called to execute the compiled query with particular parameter values.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2